﻿@namespace Masa.Blazor
@inherits ThemeComponentBase

<CascadingValue Value="ComputedTheme" Name="MasaBlazorCascadingTheme">
    <div class="@GetClass()"
         style="@GetStyle()"
         @onclick="@HandleOnClickAsync"
         @onclick:stopPropagation>
        <div class="@_selectionBlock.Element("input")" ripple="@(Ripple && !Disabled)">
            <MIcon Color="@ComputedColor"
                   Disabled="@Disabled"
                   Dark="@Dark"
                   Light="@Light">
                @ComputedIcon
            </MIcon>
        </div>
    </div>
</CascadingValue>